/*
 * Server.h
 *
 *  Created on: 2011-03-22
 *      Author: kamil
 */

#ifndef SERVER_H_
#define SERVER_H_

#include <boost/asio.hpp>
#include <string>
#include "common.h"

/**
 * Referee server class
 */
class Server {
public:
	Server(std::string ip, int port, boost::asio::io_service & svc);
	virtual ~Server();

	void send(const GameStatePacket & packet);

private:

	boost::asio::io_service & io_service;
	boost::asio::ip::udp::endpoint multicastEndpoint;
	boost::asio::ip::udp::socket multicastSocket;
};

#endif /* SERVER_H_ */
